﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModuleCalendar.aspx.cs" Inherits="news_ModuleCalendar" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="button_bar">
        <input type="button" id="btnAdd" value="添加" onclick="document.location='ModuleCalendarAdd.aspx';return false;"
            class="common_button" />&nbsp;<asp:DropDownList ID="ddlYears" 
            runat="server" AutoPostBack="True" 
            onselectedindexchanged="ddlYears_SelectedIndexChanged">
            </asp:DropDownList>
        <asp:DropDownList ID="ddlMonth" runat="server" AutoPostBack="True" 
            onselectedindexchanged="ddlMonth_SelectedIndexChanged">
        </asp:DropDownList>
    </div>
    <table class="data_list_table">
        <tr>
            <th>
                日期
            </th>
            <th>
                热门板块
            </th>
            <th>
                操作
            </th>
        </tr>
        <asp:Repeater ID="rptModuleCalendar" runat="server">
            <ItemTemplate>
                <tr>
                    <td class="list_data_number">
                        <%# Eval("ctime", "{0:yyyy-MM-dd}")%>
                    </td>
                    <td class="list_data_number">
                        <%# Eval("hotModule")%>
                    </td>
                    <td class="list_data_number">
                        <a href="ModuleCalendarUpdate.aspx?id=<%# Eval("id") %>">
                            <img src="../images/bt_edit.gif" alt="修改" title="修改" /></a>
                            <a href='ModuleCalendarDelete.aspx?id=<%# Eval("id") %>'
                                    onclick="return confirm('确定删除？')">
                                    <img src="../images/bt_del.gif" alt="删除" />
                                </a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    </form>
</body>
</html>
